#ifndef BOOK_H
#define BOOK_H

#include <QString>

class Book
{
public:
    Book();
    Book(const QString &name, const QString &publisher, const QString &author, const QString &ISBN, const QString &category, const QString &collectionLocation, int currentCollection, int allCollection);
    QString getName() const;
    void setName(const QString &newName);

    QString getPublisher() const;
    void setPublisher(const QString &newPublisher);

    QString getAuthor() const;
    void setAuthor(const QString &newAuthor);

    QString getISBN() const;
    void setISBN(const QString &newISBN);

    QString getCategory() const;
    void setCategory(const QString &newCategory);

    int getCurrentCollection() const;
    void setCurrentCollection(int newCurrentCollection);

    int getAllCollection() const;
    void setAllCollection(int newAllCollection);

    QString getCollectionLocation() const;
    void setCollectionLocation(const QString &newCollectionLocation);

private:
    QString name;//书名
    QString publisher;//出版社
    QString author;//作者
    QString ISBN;//编号
    QString category;//类别
    QString collectionLocation;//馆藏地点
    int currentCollection;//当前馆藏数量
    int allCollection;//总馆藏数量
};

#endif // BOOK_H
